import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import actions from './actions'
import mutations from './mutations'
import getters from './getters'

// config module
import base from './modules/base'

// modules
import test from './modules/test'
import loan from './modules/loan'
import repayment from './modules/repayment'
import personal from './modules/personal'

Vue.use(Vuex)

export default new Vuex.Store({
  state,
  actions,
  getters,
  mutations,
  modules: {
    base,
    test,
    loan,
    repayment,
    personal
  }
})